
<h2>レシピ一覧</h2>

<table>
<tr>
<th>No</th>
<th>タイトル</th>
<th>コメント</th>
</tr>

<?php
	$cnt=0;
	foreach($recipeData as $data):
	$cnt++;
?>

<!-- h():htmlspecialchar() -->

<tr>
<td><?php echo $cnt; ?></td>
<td><?php echo $this->Html->link(h($data['Recipe']['r_name']),array('action'=>'detail',$data['Recipe']['id'])); ?></td>
<td><?php echo nl2br(h($data['Recipe']['r_descript'])); ?></td>
<td>
<?php
	echo $this->Html->link('編集',array('action'=>'edit',$data['Recipe']['id']));
?>

<?php
	echo $this->Html->link('削除',array('action'=>'delete',$data['Recipe']['id']));
?>
</tr>

<?php endforeach; ?>

</table>